﻿@model HomeCareLibrary.Core.Dtos.SponsorInputs345xDto

@{
    ViewBag.Title = "Compliments Of";
}
 <div class="col-lg-9 col-sm-9 right_part">
          <div class="additional-web-pages sponsor-screen-Page personalization-page">
            
              @*Header not show in case of Android App. *@
             @if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString() == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
               { 
              <div class="title clearfix">
              <h1>Compliments of</h1>
              <div class="top-btn-per clearfix">
                <div id="back-button" class="back-button"><a href="javascript:void(0);" ><img class="back-btn" alt="back-btn" src="@Url.Content("~/images/personalization-images/back-btn.png")"> 
                        
                        <div class="back-mob-btn"><span class="glyphicon glyphicon-chevron-left"></span> Back</div>
                        </a></div>
              
              </div>
            </div>
             }
             @{
                  var sessionValue = "";
                  if (Session[HomeCareLibrary.Constants.SessionConstants.MODE]!=null)
                  {
                      sessionValue = Session[HomeCareLibrary.Constants.SessionConstants.MODE].ToString();
                  }
                  else{
                      sessionValue = "";
                  }
                      <input type="hidden" value="@sessionValue" id="hdnSessionValue" />
              }
                   @{var androidContent = string.Empty;
                     if (Session[HomeCareLibrary.Constants.SessionConstants.MODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.MODE] == HomeCareLibrary.Constants.ApplicationModeConstants.IPHONE_APP || Session[HomeCareLibrary.Constants.SessionConstants.MODE] == HomeCareLibrary.Constants.ApplicationModeConstants.IPAD_APP)
                 {
                     androidContent = "class= personalization-content";
                 }
                  else
                  {
                      androidContent = "";
                  }
                     }
               <div class="main-content">
              <div @androidContent>
                <div class="personalization-bg">
                  <div class="personalization-inn">
                  <div class="personalization-data sponsor-screen-additional">
                 
                 @if(Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE] == null || Session[HomeCareLibrary.Constants.SessionConstants.PROMO_CODE].ToString().Trim()==String.Empty)
                 {
                     <br />
                     <div class="update text-center">
                                                        <label class="red">
                                                         There is no Sponsor against this user. </label>
                                                      </div>
                     
                 
                 }
                      else
                      
                      {
                       <div class=" sponsor_data clearfix">
              <div class="dataset clearfix">
                <div class="header_img">
                <p>@Model.web_banner_line1<br>
                   @Model.web_banner_line2<br>
                    <small>@Model.web_banner_line3</small><br><small> @Model.web_banner_line4</small></p>
                </div>
                
                <div class="popup_footer_bg">
                 
              </div>
            </div></div>
                  <div class="sponsor-screen text-left">                  
                  <p>@Model.web_compliments_text1</p>
                  </div>
                  <div class="sponsor-screen-social">                   
                  <p>@Model.web_compliments_text2</p>
                  <br />
                   <div class="social"> 
                       <!-- Small modal -->


<div aria-hidden="true" aria-labelledby="mySmallModalLabel" role="dialog" tabindex="-1" class="modal fade bs-modal-sm" style="display: none;">
    <div class="modal-dialog modal-sm">
      <div class="modal-content">

        <div class="modal-header">
          <button aria-hidden="true" data-dismiss="modal" class="close" type="button">×</button>
          <h4 id="mySmallModalLabel" class="modal-title">Phone Number</h4>
        </div>
        <div class="modal-body">
         <a href="tel:@Model.iphone_number" target="_blank">  @Model.iphone_number</a>
        </div>
      </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
  </div>
                       @if (!String.IsNullOrEmpty(@Model.iphone_number))
                       {
                   <a href="@Model.iphone_number" data-toggle="modal" data-target=".bs-modal-sm" target="_blank"><img alt="" title="" src="@Url.Content("~/images/popup_phone_icon.png")"></a> 
                       }
                       
                        @if (!String.IsNullOrEmpty(@Model.iemail_address))
                       {
                           <a href="mailto:@Model.iemail_address" target="_blank"><img alt="" title="" src="@Url.Content("~/images/popup_mail_icon.png")"></a> 
                        }
                       
                        @if (!String.IsNullOrEmpty(@Model.iwebsite))
                       {
                   <a href="@Model.iwebsite" target="_blank"><img alt="" title="" src="@Url.Content("~/images/popup_www_icon.png")"></a> 
                        } 
                       
                       @if (!String.IsNullOrEmpty(@Model.ifacebook))
                       {
                   <a href="@Model.ifacebook" target="_blank"><img alt="" title="" src="@Url.Content("~/images/popup_fb_icon.png")"></a> 
                        }
                       
                       
                        @if (!String.IsNullOrEmpty(@Model.itwitter))
                       {
                   <a href="@Model.itwitter" target="_blank"><img alt="" title="" src="@Url.Content("~/images/popup_tw_icon.png")"></a>
                        }
                   </div>
                </div>
                 }


                      <br />
               Session Ids with values:
                      @if (ViewBag.sessionIds != string.Empty)
                   {
                      @ViewBag.sessionIds
                   } <br />
                     
                   

                    <br />
                     <span style="margin-left:10px;">
                 Session:
                    @if (ViewBag.getSession != string.Empty)
                   {
                      @ViewBag.getSession
                   }
                      </span>
             <br /> <br />

            <span style="margin-left:10px;">
                  JSON:
                     @if (ViewBag.JsonString != string.Empty)
                   {
                      @ViewBag.JsonString
                   }</span>

              <br /><br />
                         <span>
                  Request Content-Type:
                    @if (ViewBag.ContentType != string.Empty)
                   {
                      @ViewBag.ContentType
                   }
                      </span>

                      <br /><br />
                         <span>
                  Request URL:
                    @if (ViewBag.Url != string.Empty)
                   {
                      @ViewBag.Url
                   }
                      </span>


                  </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
@section script { 
  
    <script src="@Url.Content("~/js/iPhone/iPhone.js")"></script>
    
}